<%@ page language="java" import="java.util.*,com.beans.*,com.dao.*" pageEncoding="UTF-8"%> 
<%
String path = request.getContextPath();  
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
             
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 
<html>
  <head>
    <base href="<%=basePath%>"> 
    
    <title>My JSP 'index.jsp' starting page</title>
    <link rel="stylesheet" type="text/css" href="css/edittable.css"  ></link>    
		<script type="text/javascript"  src="js/jquery-1.8.0.js"></script>
   <script>
   function ip(memberIp){
	   var ips=memberIp;
	   var ip=ips.split(",");
	   for(var i=0;i<ip.length;i++)
		   {
		   $("#ip").append("<input type='text' class='txtbox' id='goodsName' name='goodsName' value="+ip[i]+"><br> ");
		   }
   }
   $(function(){
	   $(".form_btn").hover(function(){
			$(this).css("color","red").css("background","#6FB2DB");
		},
		
		function(){
			$(this).css("color","#295568").css("background","#BAD9E3");
		});	
	   $(".txtbox").attr("readonly","readonly").css("color","red");
   });
   </script>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	
	
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
  </head>
  
  <body>
     <div class ="div_title">
		 <div class="div_titlename"> <img src="images/san_jiao.gif" ><span>会员信息</span></div>
	 </div>
				<%
		 		MemberDao dao=new MemberDao();
				MemberInfo Member =dao.getMemberInfoById(request.getParameter("id"));
		 		request.setAttribute("Member", Member);
		 		%>	 
	 <form name="form" action="GoodsServlet.do?flag=add" enctype="multipart/form-data" method="post">
		 <table  class="edit_table" >
		 		<tr>
		 			 	<td  class="td_info">会员账号:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.memberNo}"/> </td>   
		 			 	<td  class="td_info">会员姓名:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.memberName}"/> </td>    
		 		</tr>
		 		<tr>
		 			 	<td  class="td_info">联系电话:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.phone}"/> </td>   
		 			 	<td  class="td_info">电子邮箱:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.email}"/> </td>    
		 		</tr>
		 		<tr>
		 			 	<td  class="td_info">注册日期:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.registerDate}"/> </td>   
		 			 	<td  class="td_info">身份证号:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.idCard}"/> </td>    
		 		</tr>
		 		<tr>
		 			 	<td  class="td_info">登录次数:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.loginCounts}"/> </td>   
		 			 	<td  class="td_info">最后登录时间:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.lastLoginDate}"/> </td>    
		 		</tr>
		 		<tr>
		 			 	<td  class="td_info">会员常用ip:</td>	
		 			 	<td  class="td_input_short" id="ip"> 
		 			 	<script>ip('${Member.ip}')</script>
		 			 	</td>   
		 			 	<td  class="td_info">会员等级:</td>	
		 			 	<td  class="td_input_short"> <input type="text" class="txtbox" id="goodsName" name="goodsName" value="${Member.memberLevel}"/> </td>    
		 		</tr>
		 		<tr>
		 		<td  class="td_info"></td>	
		 		<td>
		 		<input type="reset" class="form_btn" value="返回" onclick="Javascript:history.go(-1);" />
		 		</td>
		 		</tr>
		 			
		</table>
     </form>
  </body>
</html>